<?php
include("header.php");
$tu = sele($config,'tupian');
?>
    
    <div id="templatemo_right_column">
    
        <div id="templatemo_main">
        
            <h2>图片博文</h2>
            <div id="gallery">
                <ul>
                    <?php

                    foreach ($tu as $k => $v) {
                        echo'<li>
                        <div class="left">
                            <a href="tuyuedu.php?id='.$v['id'].'"  name="pic"><img src="'.$v['pic'].'" alt="1" /></a>
                        </div>
                        <div class="right">
                            <h5 name="title">'.$v['title'].'</h5>
                            <p name="miaoshu">'.$v['miaoshu'].'</p>
                            <div class="button"><a href="tuyuedu.php?id='.$v['id'].'">查看全文</a></div>
                        </div>
                        <div class="cleaner">对的</div>
                    </li>';
                    }

                    ?>
                    <center>
        <a href="portfolio.php?p=1">首页</a>
        <a href="portfolio.php?p=<?php echo $_SESSION['shang'] ?>">上一页</a>
        <a href="portfolio.php?p=<?php echo $_SESSION['xia'] ?>">下一页</a>
        <a href="portfolio.php?p=<?php echo $_SESSION['fen'] ?>">尾页</a>
        总共<?php echo $_SESSION['fen']; ?>页  &nbsp;&nbsp;当前第<?php echo $_SESSION['p'];?>页</center>
                </ul>
            
            </div>
        
        </div> <!-- end of main -->
        <div class="cleaner"></div>
    </div>  <!-- end of right column -->
   <?php
   include("footer.php");
   ?>